//
//  THNetCheck.h
//  THBaseApp
//
//  Created by TryHone on 16/6/3.
//  Copyright © 2016年 TryHone. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSInteger, NetStatus) {
    NetStatus_Unknown = 0, //未识别的网络
    NetStatus_NotReachable = 1, //未连接网络
    NetStatus_ReachableViaWWAN = 2,//2G 3G 4G
    NetStatus_ReachableViaWiFi = 3 //wifi
};


typedef void (^JFNetCheckStatusBlock)(NetStatus status);


@interface JFNetCheck : NSObject
@property (nonatomic,assign,readonly) NetStatus  status;

+ (JFNetCheck *)sharedManager;
//实例方法获取网络状态
-(void)netStatus:(JFNetCheckStatusBlock)statusblock;
//类方法获取网络状态 注意此回调会被别人覆盖
+(void)netStatus:(JFNetCheckStatusBlock)statusblock;
@end
